<?php
/**
 * Created by PhpStorm.
 * User: mac
 * Date: 2019-03-03
 * Time: 14:41
 */

function testDefer()
{
    echo '1111111' . PHP_EOL;
    defer('deferFunc');
    echo '222222' . PHP_EOL;
}

function deferFunc()
{
    echo 'defer aaaaaa' . PHP_EOL;
}

go('testDefer');